﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace posit_negat_null
{
    class Program
    {
        static void PrintResults (int a,int b, int c)
        {
            Console.WriteLine("amount of positive is {0}, amount of negative is {1},amount of nulls is {2}",a,b,c);
        }
        static int CalculateNull(int [] array)
        {
            int amount = 0;
            for (int i = 0;i < array.Length;i++)
            {
                if (array[i] == 0)
                    amount++;
            }
            return amount;
        }
        static int CalculateNegative(int[] array)
        {
            int amount = 0;
            for (int i = 0; i < array.Length; i++)
            {
                if (array[i] < 0)
                    amount++;
            }
            return amount;
        }
        static int CalculatePositive (int[] array)
        {           
            int amount = 0;
            for (int i = 0; i < array.Length; i++)
			{
                if (array[i] > 0)
                    amount++;
			}
            return amount;
        }
        static void Main(string[] args)
        {
            Console.WriteLine("enter n");
            int n = Convert.ToInt32(Console.ReadLine());
            int[] storage = new int[n];

            for (int i = 0; i < n; i++)
            {
                Console.WriteLine("enter {0} number", i + 1);
                int temp = Convert.ToInt32(Console.ReadLine());
                storage[i] = temp;

            }
            int positive = CalculatePositive(storage);
            int negative = CalculateNegative(storage);
            int zero = CalculateNull(storage);
            PrintResults(positive,negative,zero);

            Console.ReadKey();
        }
    }
}
